<?

// Display the details tabs
$show_tabs = false;
	
// Show / hide photos
if($destination_photos){
	$show_photos = true;
	$show_tabs = true;
}

// Show / hide map
if($destination_values['show_map']){
	$show_map = true;
	//$show_tabs = true;
}

// Show / hide reviews
if($weather_day_reports){
	$show_weather = true;
	//$show_tabs = true;
}




if($show_tabs){
?>

<!-- Start destination details tab -->


<div class="box_lb_brd_400">
<div class="box_lb_brd_400_shoe">
<div class="box_lb_brd_400_tabs_cap">


<ul class="hotel_tabs" id="simple-tabs">
<? if($show_photos){ ?> <li class="dest_tab_photos_on"><a href="#" class="hotel_tab_active" id="tab-photos">Photos</a></li> <? } ?>
<? if($show_location){ ?> <li class="dest_tab_location_off"><a href="#" id="tab-location">Location</a></li> <? } ?>
<? if($show_weather){ ?> <li class="dest_tab_weather_off"><a href="#" id="tab-weather">Weather</a></li> <? } ?>
</ul>

<div class="clearing"></div>

<div class="box_padding_tabs" id="simple-tabs-body">

<h4 title="Photos of <?= $destination_values['name'] ?>">Photos of <?= $destination_values['name'] ?></h4>

<?

$i=0;
if(!empty($destination_photos)){
foreach($destination_photos as $destination_photo){
?>

<div class="destination_photo_box"><a class="fancy" rel="group" href="<?= UPLOAD_HTTP_PERM.$destination_photos[$i]['photo_url_full'] ?>"><img src="<?= UPLOAD_HTTP_PERM.$destination_photos[$i]['photo_url_thumb'] ?>" alt="<?= $destination_values['name'] ?>" /></a></div>

<?
$i++;
}
}
?>


<div class="clearing"></div>

<br />

<p class="acc_desc_note">Whilst LateDeals.ie make every effort to ensure the accuracy of information on our website, accommodation descriptions and photos may contain errors or changes. There may be occasions where facilities may be withdrawn. These changes are regrettably beyond our control and therefore we cannot guarantee the accuracy of these descriptions.</p>


  
</div>
  
  
</div>
</div>
</div>
  
  
<!-- End hotel details tab -->

<div class="clearing"></div>

<br />






<!-- Start empty tab -->
<div class="tab_content_containers" id="tab-photos-content"></div>
<!-- End empty tab -->




<? if($show_location){ ?>

<!-- Start hotel map tab -->
<div class="tab_content_containers" id="tab-location-content">

<h4 title="Map of <?= $destination_values['name'] ?>">Map of <?= $destination_values['name'] ?></h4>

map ?



</div> 
<!-- End hotel map tab -->

<? } ?>







<? if($show_weather){ ?>

<!-- Start weather tab -->
<div class="tab_content_containers" id="tab-weather-content">

<h4 title="Weather in <?= $destination_values['name'] ?>">Weather in <?= $destination_values['name'] ?></h4>



<h5 title="Current weather in <?= $destination_values['name'] ?>">Current conditions</h5>


<div style="float:left; width: 58px;"><img src="<?= $weather_day_reports['image_url'] ?>" /></div>
<div style="float:left; width: 130px;"><p><?= $weather_day_reports['text'].", ".$weather_day_reports['temp'] ?>&deg;</p></div>

<div class="clearing"></div>


<h5 title="2 day weather forecast for <?= $destination_values['name'] ?>">2 day forecast</h5>

<?
	foreach($weather_day_reports['forecast'] as $weather_value){
?>
	<div style="float:left; width: 58px;"><img src="<?= $weather_value['image_url'] ?>" /></div>
	<div style="float:left; width: 130px;">
		<p class="no_margin"><strong><?= date('D jS F',$weather_value['date_stamp']) ?></strong><br />
		<?= $weather_value['text'] ?><br />
        High: <?= $weather_value['high'] ?>&deg; Low: <?= $weather_value['low'] ?>&deg;
		</p>	
	</div>
	
	
<? } ?>

<div class="clearing"></div>
  

</div>
<!-- End weather tab -->

<? } ?>



<? } ?>


